import http from "@/utils/http";

/**
 * 首页-广告区域-轮播图
 * @param {number} distributionSite 
 * @returns 
 */
export function getHomeBanner(distributionSite=1) {
    return http({
        url: '/home/banner',
        data: {
            distributionSite,
        },
    })
}

/**
 * 前台分类接口
 * @returns 
 */
export function getHomeCategoryMutli(){
    return http({
        url:'/home/category/mutli'
    })
}

/**
 * 热门推荐接口
 * @returns 
 */
export function getHomeHotMutli(){
    return http({
        url:'/home/hot/mutli'
    })
}

/**
 * 新鲜好物接口
 * @returns 
 */
export function getHomeNew(){
    return http({
        url:'/home/new'
    })
}
//
/**
 * 猜你喜欢接口
 * @param {Object} data 
 * @returns 
 */
export function getHomeGoodsGuessLike(data){
    return http({
        url:'/home/goods/guessLike',
        data
    })
}
//
/**
 * 首页的人气推荐模块需求  返回对应数据
 * @param {String} url 
 * @param {Object} data 
 * @returns 
 */
export function getHomeRecommend(url,data={}){
    return http({
        url,
        data
    })
}